<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<TITLE></TITLE>
		<META NAME="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<link rel="stylesheet" type="text/css" href="../Meta.css">
	</HEAD>
	<BODY>
		<H1>ArgumentCountException</H1>
		<H2>What it means</H2>
		<P>This <A href="Exception.htm">exception</A> means the program called a procedure 
			with the wrong number of arguments (aka "parameters", "inputs", etc.).&nbsp; In 
			other words, it's either missing some arguments or passing some extra 
			arguments.&nbsp; The argumentsExpected field shows you the names of each of the 
			arguments that are supposed to be passed to the procedure.&nbsp; The 
			argumentsProvided field shows you the (values of) all the arguments that were 
			actually passed to it.</P>
		<H2>What to do</H2>
		<P>Find out the arguments that are required by the procedure.&nbsp; Now find the 
			expression that contains the call to your procedure.</P>
		<UL>
			<LI>
				If it looks something like:</LI></UL>
		<BLOCKQUOTE dir="ltr" style="MARGIN-RIGHT: 0px"> <BLOCKQUOTE dir="ltr" style="MARGIN-RIGHT: 0px">
				<P><FONT face="Arial">[my-procedure &nbsp;<FONT face="Times New Roman"><EM>expression</EM><SUB>1</SUB><EM>&nbsp; 
								expression</EM><SUB>2</SUB><EM> </EM></FONT>...&nbsp; <EM><FONT face="Times New Roman">
								expression<SUB>m</SUB></FONT></EM>]</FONT></P>
			</BLOCKQUOTE>
			<P dir="ltr">then you must be including the wrong number of <EM>expression</EM>s in 
				the code.&nbsp; Compare the expressions to the argumentsExpected field of the 
				exception and figure out what's missing or extra and edit the code accordingly.</P>
		</BLOCKQUOTE>
		<UL dir="ltr">
			<LI>
				<DIV>If the code looks something like:</DIV>
				<DIV>
					<UL>
					</UL>
				</DIV>
				<BLOCKQUOTE dir="ltr" style="MARGIN-RIGHT: 0px">
					<P><FONT face="Arial">[apply&nbsp; my-procedure &nbsp;<FONT face="Times New Roman"><EM>expression</EM></FONT>]</FONT></P>
				</BLOCKQUOTE>
				<P dir="ltr" style="MARGIN-RIGHT: 0px">then the <EM>expression</EM> must be 
					producing a sequence with the wrong number of elements.</P>
			</LI>
		</UL>
	</BODY>
</HTML>
